package com.qiao.train.DAO;

import com.qiao.train.po.Person;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PersonDAO {
    Person login(String name, String psd);

    List<Person> getAllUser();

    Person getUserById(int id);

    int createUser(Person user);

    int deleteUser(int id);

    int updateUser(Person user);
}
